﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StudentSys.Models
{
    /// <summary>
    /// 学生签到
    /// </summary>
    public class StudentSigned : BaseEntity
    {
        [ForeignKey(nameof(Student))]
        public Guid StudentId { get; set; }

        public Student Student { get; set; }


        [ForeignKey(nameof(Class))]
        public Guid ClassId { get; set; }

        public Class Class { get; set; }
        /// <summary>
        /// 签到时间
        /// 
        /// 签退时间
        /// 
        /// "?"表示允许为空
        /// </summary>
        public DateTime? InTime { get; set; }
        public DateTime? OutTime { get; set; }
        /// <summary>
        /// 签到类型
        /// </summary>
        public String SingnedType { get; set; }
    }
}
